package com.ky.my.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author hmt
 * @since 2024-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Orders implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 课程表id
     */
    private Integer courseId;

    /**
     * 收货地址
     */
    private Integer addressId;

    /**
     * 总金额
     */
    private BigDecimal totalAmount;

    /**
     * 状态;1待支付2已支付3已发货4已完成5已取消
     */
    private Integer status;

    /**
     * 下单时间
     */
    private Date orderTime;


}
